ifeq ($(TOP_DIR),) 
KERNEL_DIR :=$(srctree)
EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc

ifeq ($(TARGET_PRODUCT), mini)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM
endif

obj-m   += drv_pwm.o
drv_pwm-objs := pwm_drv.o comm_knl_api.o
else
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc

ifneq ($(findstring $(PRODUCT),  ascend310 ascend310rc ascend610 ascend710),)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM
endif

obj-m   += drv_pwm.o
drv_pwm-objs := pwm_drv.o comm_knl_api.o
endif